<?php require_once("./inc/global.php");adminislogin(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台管理系统</title>
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<link href="./Css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="20" cellpadding="0">
  <tr>
    <td width="50%" valign="top">
    	<fieldset id="htmlstart" style="border:#999 solid 1px; border-radius:4px">
          <legend style="font-size:14px;">网站信息</legend>
            <table width="100%" border="0" cellspacing="5" cellpadding="0">
              <tr>
                <td width="100" align="right">网站服务器：</td>
                <td><?php echo php_uname('s')?> <?php echo $_SERVER['SERVER_SOFTWARE']?></td>
              </tr>
              <tr>
                <td align="right">PHP版本：</td>
                <td>PHP <?php echo PHP_VERSION?> </td>
              </tr>
              <tr>
                <td align="right">数据库：</td>
                <td>MySQL <?php echo mysql_get_server_info($db->dblink)?> </td>
              </tr>
              
              <tr>
                <td align="right">访问域名：</td>
                <td><?php echo $_SERVER['HTTP_HOST']?> </td>
              </tr>
              <tr>
                <td align="right">系统版本：</td>
                <td>GDCMS beta 3.1.3 </td>
              </tr>
            </table>
        </fieldset>
    </td>
    <td valign="top">
     <?php
	 $userinfo = $db->getoners('select * from sysadmin where sysadmin0='.$_SESSION[ADMINSESSION]['sysadmin0']);
	 ?>
    	<fieldset id="htmlstart" style="border:#999 solid 1px; border-radius:4px">
          <legend style="font-size:14px;">用户信息</legend>
          <table width="100%" border="0" cellspacing="5" cellpadding="0">
              <tr>
                <td width="100" align="right">当前登录用户：</td>
                <td><?php echo $_SESSION[ADMINSESSION]['sysadmin1']?></td>
              </tr>
              <tr>
                <td align="right">登录身份：</td>
                <td><?php echo $_SESSION[ADMINSESSION]['sysadmin3']?> </td>
              </tr>
              <tr>
                <td align="right">上次登录时间：</td>
                <td><?php echo date('Y-m-d H:i:s',$_SESSION[ADMINSESSION]['sysadmin7'])?> </td>
              </tr>
              <tr>
                <td align="right">当前登录时间：</td>
                <td><?php echo date('Y-m-d H:i:s',$userinfo['sysadmin7'])?></td>
              </tr>
              <tr>
                <td align="right">您的IP地址：</td>
                <td><?php echo $_SERVER['REMOTE_ADDR']?> </td>
              </tr>
            </table>
        </fieldset>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>


</body>
</html>
